package com.yy.wga.user.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yy.wga.user.service.pojo.UserRelationDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 直播用户锁粉关系(UserRelation)表数据库访问层
 *
 * @author guochao
 * @since 2022-07-27 22:12:32
 */
@Mapper
public interface UserRelationMapper extends BaseMapper<UserRelationDO> {
    /**
     * 移除用户粉丝关系
     *
     * @param userId 用户id
     */
    void removeByUserId(@Param("userId") Long userId);

    /**
     * 移除父级粉丝关系
     *
     * @param parentUserId 上级用户id
     */
    void removeByParentUserId(@Param("parentUserId") Long parentUserId);
}
